package com.ruoyi.mixuebingcheng.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息业务对象 seller
 *
 * @author ruoyi
 * @date 2023-10-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SellerBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 性别
     */
    @NotBlank(message = "性别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sex;

    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String idNumber;

    /**
     * 头像
     */
    @NotBlank(message = "头像不能为空", groups = { AddGroup.class, EditGroup.class })
    private String avatar;

    /**
     * 工资
     */
    @NotNull(message = "工资不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal salary;

    /**
     * 上司id
     */
    @NotNull(message = "上司id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long superiorId;

    /**
     * 地区编号
     */
    @NotBlank(message = "地区编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaCode;

    /**
     * 级别 0 超级管理员1一级经销商 2二级经销商 3三级经销商 4 上架员
     */
    @NotNull(message = "级别 0 超级管理员1一级经销商 2二级经销商 3三级经销商 4 上架员不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long level;

    /**
     * 是否删除
     */
    @NotNull(message = "是否删除不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isDeleted;


}
